/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fvs.edu.br;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Pedro Saraiva
 */
public class Subprogramas<T> {
    
    private List<T> lista =
            new ArrayList<>();
    
    public void salvar(T object){
        lista.add(object);
    }
    
    public void exibir(){
        for (int i = 0; i < lista.size(); i++) {
            System.out.println(lista.get(i));
        }
    }
    
}
